/**
 * ©2013-2015 Alan L. Rights Reserved.
 */
package org.freedom.railhunter.service;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import org.codehaus.jackson.JsonFactory;
import org.codehaus.jackson.map.ObjectMapper;

/**
 *
 * @author Alan
 */
public class BaseService {
    
    // 返回的json节点名
    public static final String STATUS = "status";
    public static final String DATA = "data";
    public static final String MESSAGE = "messages";
    
    // Request parameters
    public static final String JSON_ATTR = "_json_att";
    public static final String PURPOSE_CODES = "purpose_codes";
    public static final String TRAIN_DATE = "train_date";
    public static final String RAND_CODE = "randCode";
    
    // Date format
    // yyyy-MM-dd format
    public static final DateFormat yyyy_mm_dd_format = new SimpleDateFormat("yyyy-MM-dd");
    
    // Object mapper
    protected static final ObjectMapper object_mapper = new ObjectMapper();
    protected static JsonFactory json_factory = object_mapper.getJsonFactory();
    
}
